#ifndef LIBRARYWIDGET_H
#define LIBRARYWIDGET_H

#include <QWidget>
#include <QPaintEvent>

class LibraryWidget : public QWidget
{
	Q_OBJECT
	int size;
	Qt::GlobalColor *books;

	static const int rectSize = 25;

public:
	explicit LibraryWidget(int size, QWidget *parent = 0);
	void paintEvent(QPaintEvent *);
	
signals:
	
public slots:
	void freeBook(int id);
	void readBook(int id);
	void editBook(int id);
	
};

#endif // LIBRARYWIDGET_H
